<template>
	<iframe v-if="url" ref="iframe" class="h5" :src="url" height="100%"></iframe>
</template>

<script>
import store from 'store';
export default {
	data() {
		return {
			url: ''
		};
	},
	created() {
		let { token, expires_time } = store.get('selfInfo');
		expires_time = expires_time.substring(0, 19);
		expires_time = expires_time.replace(/-/g, '/');
		expires_time = new Date(expires_time).getTime();
		let url = this.$selfUrl;
		this.url = `${url}/order/list2/0?token=${token}&expires_time=${expires_time}`;
	},
	mounted() {}
};
</script>

<style scoped>
.h5 {
	height: calc(100vh - 100px);
	width: 100%;
	border: none;
}
</style>
